package bairui.international.controller.finance.order;

import com.sh_lianjing.spring.web.controller.enhance.module.*;
import com.sh_lianjing.spring.web.controller.enhance.module.body.*;
import com.sh_lianjing.spring.web.controller.enhance.output.bean.*;
import bairui.international.controller.finance.order.C_Finance_ProductOrder_Page_Page;
import bairui.international.controller.finance.order.C_Finance_ProductOrder_Export_ExcelExport;
import bairui.international.controller.finance.order.C_Finance_ProductOrder_Detail_DetailAccess;

/**
 *
 * Module_Page
 *
 */
class Module_Page{

	/**
	 * 分页模块
	 */
	public Module module(
		com.sh_lianjing.spring.web.controller.enhance.module.feature.PageModuleFeatureSupport moduleFeature,
		C_Finance_ProductOrder_Page_Page.Page.Operate c_Finance_ProductOrder_Page_Page_Page_Operate
	,	C_Finance_ProductOrder_Export_ExcelExport.ExcelExport.Operate c_Finance_ProductOrder_Export_ExcelExport_ExcelExport_Operate
	,	C_Finance_ProductOrder_Detail_DetailAccess.DetailAccess.Operate c_Finance_ProductOrder_Detail_DetailAccess_DetailAccess_Operate
		,java.util.List<bairui.international.model.domain.jpa.TB_BranchCompany> branchCompany
		,java.util.List<bairui.international.model.domain.jpa.TB_Town> area
	){
		return
			new Module(
					new ModuleHead("列表")
						.addOperate(
							c_Finance_ProductOrder_Export_ExcelExport_ExcelExport_Operate
								.defaultComment("导出")
						)
					, 
					new PageModuleBody(
							moduleFeature,
							Page_OutputInfo.outputInfo(),
							new PageFilterInfo(
									Page_BaseFilter.info(), 
									Page_OutputInfo.pageInfo(), 
									Page_OutputInfo.orderInfo()
								),
							c_Finance_ProductOrder_Page_Page_Page_Operate
							,new java.util.Map.Entry<String, java.util.List<?>>() {
								@Override public String getKey() {
									return "branchCompany.id";
								}
								@Override public java.util.List<?> getValue() {
									return branchCompany;
								}
								@Override public java.util.List<?> setValue(java.util.List<?> value) {
									return value;
								}
							}
							,new java.util.Map.Entry<String, java.util.List<?>>() {
								@Override public String getKey() {
									return "area.id";
								}
								@Override public java.util.List<?> getValue() {
									return area;
								}
								@Override public java.util.List<?> setValue(java.util.List<?> value) {
									return value;
								}
							}
						)
						.addListOperate(
							c_Finance_ProductOrder_Detail_DetailAccess_DetailAccess_Operate
								.defaultComment("查看")
								.defaultTarget(com.sh_lianjing.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.setIdentifier("id")
				);
	}
	
	public Module module(
		C_Finance_ProductOrder_Page_Page.Page.Operate c_Finance_ProductOrder_Page_Page_Page_Operate
	,	C_Finance_ProductOrder_Export_ExcelExport.ExcelExport.Operate c_Finance_ProductOrder_Export_ExcelExport_ExcelExport_Operate
	,	C_Finance_ProductOrder_Detail_DetailAccess.DetailAccess.Operate c_Finance_ProductOrder_Detail_DetailAccess_DetailAccess_Operate
		,java.util.List<bairui.international.model.domain.jpa.TB_BranchCompany> branchCompany
		,java.util.List<bairui.international.model.domain.jpa.TB_Town> area
	){
		return this.module(
				null,
				c_Finance_ProductOrder_Page_Page_Page_Operate
	,			c_Finance_ProductOrder_Export_ExcelExport_ExcelExport_Operate
	,			c_Finance_ProductOrder_Detail_DetailAccess_DetailAccess_Operate
				,branchCompany
				,area
			);
	}
	
	
	/**
	 * 输出模型
	 */
	

}
